package com.zyw.zhuangdian.dao;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BaseDao {

    @Autowired
    protected SqlSessionTemplate sqlTemplate;

    public SqlSessionTemplate getSessionTemplate() {
        return sqlTemplate;
    }

    public void setSessionTemplate(SqlSessionTemplate sessionTemplate) {
        this.sqlTemplate = sessionTemplate;
    }
}
